<template>
  <div
    class="set-item"
    :style="{ width: width + 'px' }"
  >
    <slot />
    <span class="name">
      {{ name }}
    </span>
  </div>
</template>

<script>
export default {
  props: {
    name: {
      type: String,
      required: false,
      default:''
    },
    width: {
      type: Number,
      required: false,
      default:0
    }
  }
}

</script>

<style lang="scss" scoped>
.set-item {
  display: flex;
  flex-direction: column;
  min-width: 110px;
  text-align: start;
  margin-bottom: 5px;
  .name {
    margin-top: 2px;
    color: rgb(118, 124, 130);
  }
}
</style>
